package com.yq.cp.mapper.yw;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yq.cp.entity.yw.YwZbglJjb;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yq.cp.entity.yw.vo.YwZbglJjbVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 运维-值班管理-交接班 Mapper 接口
 * </p>
 *
 * @author zh
 * @since 2024-09-07
 */
public interface YwZbglJjbMapper extends BaseMapper<YwZbglJjb> {

    @Delete("DELETE FROM t_yw_zbgl_jjb WHERE id=#{id}")
    Long sc(Long id);

    @Delete("UPDATE t_yw_zbgl_jjb SET state=99 WHERE sszd_id=#{id}")
    Long xgzt(Long id);

    IPage<YwZbglJjb> page(IPage<YwZbglJjb> ipage,@Param("v") YwZbglJjbVo vo);
}
